home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
5 Star Games: DOS Edition 2
/
5 Star Games - DOS Edition (1995)(Ready to Run).iso
/
dbc
/
db_str.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-07
|
2KB
|
33 lines
/****************************************************************************/
/* HEADER FILE FOR DATABOSS MODULE: DB_STR */
/****************************************************************************/
/******************************* PROTOTYPES *******************************/
#ifndef __TURBOC__
#define stpcpy(sout,s) strchr(strcpy(sout,s),'\0')
#endif
#define strequ(s1,s2) (strcmp(s1,s2) == 0)
#define strsearch(targ,subs) ((subs[0] =='\0') ? targ : strstr(targ,subs))
char* DB_Sprintf( char* pachBuffer, char* pchFormat,...);
strptr strcopy(string sout, string s, int from, int len); /* sout can be the source string but not a ptr inside the string */
strptr strconcat(string sout, ...); /* sout can be the any part of any source string */
/* end of list is marked by a NULL pointer */
strptr strdelete(string s, int from, int len);
strptr strinsert(string sins, string s, int pos); /* sins can be the source string but not a ptr inside the string */
int strposstr(string chkfor, string s);
int strposch(uchar c, string s);
strptr chstr(string sout, byte c);
strptr strchcat(strptr s, uchar ch);
strptr pastocstr(strptr ps); /* assumes the pascal string does not contain NULs */
char * mid(char *destination, char *source, int start, int length); /* extract sub-string from first string */
int strgt(char *source1, char *source2);
int strlt(char *source1, char *source2);
int strgte(char *source1, char *source2);
int strlte(char *source1, char *source2);
int strne(char *source1, char *source2);
/**************************** END OF DB_STR.H *****************************/